package com.albb3;
interface Geometry{  
    public double getArea();  
}  
class Pillar{  
    Geometry bottom;  
    double height;  
    public Pillar(Geometry bottom, double height){  
        this.bottom=bottom;  
        this.height=height;  
    }  
    public double Volume(){  
        return bottom.getArea()*this.height;   
    }  
}  
class Circle implements Geometry{  
    double radius;  
    public Circle(double radius){  
        this.radius = radius;  
    }  
    public double getArea() {  
        return Math.PI*this.radius*this.radius;   
          
    }  
}  
class Rect implements Geometry{  
    double wide,length;  
    public Rect(double wide, double length){  
        this.wide = wide;  
        this.length = length;  
    }  
    public double getArea() {  
        return wide*length;  
    }  
}  